package com.wordlearning.app.service;

import com.wordlearning.app.entity.WordSet;
import com.wordlearning.app.entity.Word;

import java.util.List;
import java.util.Optional;

public interface WordSetService {

    WordSet createWordSet(WordSet wordSet);
    List<WordSet> getAllWordSets();
    List<WordSet> getWordSetsByUserId(Long userId);
    Optional<WordSet> getWordSetById(Long id);
    WordSet updateWordSet(Long id, WordSet wordSet);
    void deleteWordSet(Long id);
    WordSet addWordToWordSet(Long wordSetId, Long wordId);
    WordSet removeWordFromWordSet(Long wordSetId, Long wordId);
    List<Word> getWordsInWordSet(Long wordSetId);

}